package com.mxf.code.state_factory.pojo;

/**
 * @version 1.0
 * @date 2021/6/9 21:46
 * 订单各状态处理
 */
public class OrderStateCommon implements OrderState {
    @Override
    public void handle(Order newOrder, Order oldOrder) {

    }

    /**
     * 生成日志
     *
     * @param order 订单
     */
    public void buildOrderLog(Order order) {
        //保存日志
        System.out.println("保存日志订单状态: " + order.getStatus());
    }
}